<form method="post" action="<?php
if ($mode!='edit')
echo base_url().'admin/pengajar_con/simpan_tambah_pengajar';
else
    echo base_url().'admin/pengajar_con/simpan_edit_pengajar/'.$data1['ID'];
?>" enctype="multipart/form-data">
    <?php echo $error;?><br />
    username : <input type="text" name="username" value="<?php echo $data1['USERNAME'];?>"/><br />
    password : <input type="password" name="password"/><br />
    nama : <input type="text" name="nama" value="<?php echo $data1['NAMA'];?>" /><br />
    e-mail : <input type="text" name="e-mail" value="<?php echo $data1['EMAIL'];?>" /><br />
    alamat : <textarea name="alamat"><?php echo $data1['ALAMAT'];?></textarea><br />
    no. telp : <input type="text" name="notelp" value="<?php echo $data1['NO_TELP'];?>" /><br />
    <?php if($mode!="edit") {?>
    foto : <input type="file" name="foto" id="foto"/><br />
    <?php } ?>
    rate instruktur : <input type="text" name="rate_instruktur" value="<?php echo $data2['RATE_INS'];?>" /><br />
    rate asisten : <input type="text" name="rate_asisten" value="<?php echo $data2['RATE_ASS'];?>" /><br />
    <input type="submit" value="Simpan">
</form>
